package sis.threadtest;/*
 * @auther 顶风少年
 * @mail dfsn19970313@foxmail.com
 * @date 2019-08-02 18:58
 * @notify
 * @version 1.0
 */

public class DaemonTest {
    public static void main(String[] args) {
        Thread t = new Thread() {
            public void run() {
                while (true) {
                    System.out.println(".");
                }
            }
        };
        //t.setDaemon(true);
        t.start();
        try {
            Thread.sleep(1000);
            Runtime.getRuntime().exit(0);
        } catch (Exception e) {
        }

    }
}
